package com.invengo.module_check.data.entity;

import com.invengo.module_check.R;

public enum ActionArgs {
    ACTION_LISTING("上架", R.drawable.feature_up,
            R.id.homefragment_2_selectlayerfragment,
            R.id.selectlayerfragment_2_booklistingfragment,
            0,
            R.id.action_booklistingfragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.selectlayerfragment),
    ACTION_DOWN("下架", R.drawable.feature_down,
            R.id.homefragment_2_bookdownfragment,
            0,
            0,
            R.id.action_bookdownfragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.bookdownfragment),
    ACTION_INVENTORY("盘点", R.drawable.feature_inventory,
            R.id.homefragment_2_selectlayerfragment,
            R.id.selectlayerfragment_2_inventoryFragment,
            0,
            R.id.action_inventoryFragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.selectlayerfragment),
    ACTION_SEARCH("图书查找", R.drawable.feature_search,
            R.id.homefragment_2_bookSearchFragment,
            R.id.bookSearchFragment_2_addBookFragment,
            0,
            0,
            0,
            0),
    ACTION_CHANGE("层位倒架", R.drawable.feature_change,
            R.id.homefragment_2_changeShelfFragment,
            R.id.changeShelfFragment_2_selectlayerfragment,
            0,
            R.id.action_selectlayerfragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.changeShelfFragment),
    ACTION_PARALLEL("顺架", R.drawable.feature_parallel,
            R.id.homefragment_2_selectlayerfragment,
            R.id.selectlayerfragment_2_parallelFragment,
            0,
            R.id.action_parallelFragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.selectlayerfragment
    ),
    ACTION_FIRST("首书定位", R.drawable.feature_locate,
            R.id.homefragment_2_selectlayerfragment,
            R.id.selectlayerfragment_2_firstfragment,
            0,
            R.id.action_firstfragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.selectlayerfragment),
    ACTION_FIRST_CHECK("首书检测", R.drawable.feature_check,
            R.id.action_homefragment_to_firstSelectShelfFragment,
            R.id.action_firstSelectShelfFragment_to_firstCheckFragment,
            0,
            R.id.action_firstCheckFragment_to_firstRecordFragment,
            0,
            R.id.firstSelectShelfFragment),
    ACTION_LISTING_GUIDE("上架指导", R.drawable.feature_guide,
            R.id.homefragment_2_listingguidefragment,
            0,
            0,
            0,
            0,
            0),
    ACTION_FORCE("强制定位", R.drawable.feature_force,
            R.id.homefragment_2_forceposfragment,
            R.id.forceposfragment_to_selectlayerfragment,
            0,
            R.id.action_selectlayerfragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.forceposfragment),
    ACTION_REVOKE("撤销强制定位", R.drawable.feature_revoke,
            R.id.homefragment_2_revokeFragment,
            0,
            0,
            R.id.action_revokeFragment_to_opeartionFragment,
            R.id.action_opeartionFragment_to_opeartionInfoFragment,
            R.id.revokeFragment),
    ACTION_OFFLINE_COLLECT("离线采集", R.drawable.feature_inventory,
            R.id.homefragment_2_offlinecollectfragment,
            0,
            0,
            0,
            0,
            0),
    ACTION_REMOVE("剔旧", R.drawable.feature_move,
            R.id.homefragment_2_removeOldFragment,
            0,
            0,
            0,
            0,
            0),
    ACTION_GET_IN_CAR("图书上车", R.drawable.feature_move,
            R.id.homefragment_2_getInCarFragment,
            0,
            0,
            0,
            0,
            R.id.getInCarFragment),
    ACTION_LISTING_BY_CAR("排架上架", R.drawable.feature_move,
            R.id.action_homefragment_to_listingByCarFragment,
            0,
            0,
            0,
            0,
            R.id.getInCarFragment),
    ACTION_READ_PICK("取阅剔除", R.drawable.feature_move,
            R.id.homefragment_2_readPickFragment,
            0,
            0,
            0,
            R.id.homefragment,
            R.id.homefragment),
    ACTION_FIND_ERROR("异常排查", R.drawable.feature_stat,
            R.id.homefragment_2_findErrorFragment,
            0, 0, 0,
            R.id.homefragment,
            R.id.homefragment);
    private String name;
    private int resultAction;
    private int workAction;
    private int icon;


    ActionArgs(String name, int icon, int home2first, int first2second, int second2thrid, int resultAction, int result2info, int workAction) {
        this.name = name;
        this.icon = icon;
        this.home2first = home2first;
        this.first2second = first2second;
        this.second2thrid = second2thrid;
        this.resultAction = resultAction;
        this.result2info = result2info;
        this.workAction = workAction;
    }

    private int home2first;
    private int first2second;
    private int second2thrid;
    private int result2info;


    public int getHome2first() {
        return home2first;
    }

    public int getFirst2second() {
        return first2second;
    }

    public int getSecond2thrid() {
        return second2thrid;
    }

    public int getResult2info() {
        return result2info;
    }

    public String getName() {
        return name;
    }


    public int getWorkAction() {
        return workAction;
    }

    public int getHomeAction() {
        return R.id.homefragment;
    }

    public int getIcon() {
        return icon;
    }

    public int getResultAction() {
        return resultAction;
    }
}